import request from "@/utils/request";



export function listNotes(params) {
  return request({
    url: '/ai/content/list',
    method: 'get'
  })
}
// 查询文章内容详细
export function getNote(id) {
  return request({
    url: '/ai/content/' + id,
    method: 'get'
  })
}



// 修改文章内容
export function updateNote(data) {
  return request({
    url: '/ai/content',
    method: 'put',
    data: data
  })
}
export function delNote(id) {
  return request({
    url: '/ai/content/' + id,
    method: 'delete'
  })
}
export function generateImage(params) {
  return request({
    url: '/ai/content/generate/image',
    method: 'get',
    params: params,
    timeout: 600000
  })
}
